Ext.define('School.controller.School', {
    extend: 'Ext.app.Controller',
    config: {
        control: {
            "#schoolList": {
                itemtap: 'onSchoolTap',
                select: 'onSchoolActivate'
            }
        }
    },
    
    //列表选择, 高亮延时0.5秒
    onSchoolTap: function(list, idx, el, record){
        setTimeout(function(){
            el.removeCls([list.getPressedCls(), list.getSelectedCls()]);
        }, 250);
        
    },
    
    onSchoolActivate: function(target, record){
		Ext.getCmp('viewport').setActiveItem(1);
	}
   
    
});
